package com.yhgarden.bbs.mapper.system;


import com.yhgarden.bbs.entity.system.SystemUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by caimb on 2017/4/27.
 */
public interface SystemUserMapper {

    public int create(SystemUser systemUser);

    public int update(SystemUser systemUser);

    public int delete(@Param("id") String id);

    public SystemUser getById(String id);

    public SystemUser getByPhoneNum(@Param("phoneNum") String phoneNum);

    public SystemUser getByAccount(@Param("account") String account);

    public SystemUser getByIdMoreDetail(String id);

    public List<SystemUser> query(@Param("example") SystemUser systemUser,
                                  @Param("order") String order,
                                  @Param("field") String field);

    public List<SystemUser> queryForList(@Param("example") SystemUser systemUser,
                                            @Param("order") String order,
                                            @Param("field") String field);
}
